package com.kaoqin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaoqin.mapper.SignMapper;
import com.kaoqin.model.Sign;
import com.kaoqin.service.SignService;

/**
 * @ClassName: SignSerivceImpl
 * @Description: TODO
 * @author: Janus
 * @date: 2017-7-21 上午11:36:58
 */
@Service
@Transactional
public class SignSerivceImpl implements SignService {
	@Resource
	private SignMapper mapper;

	@Override
	public List<Sign> findAll(Sign sign) {
		return mapper.findAll(sign);
	}

	@Override
	public String findProCodeByIp(String ip) {
		return mapper.findProCodeByIp(ip);
	}

	@Override
	public void saveAll(List<Sign> signList) {
		mapper.insertBatch(signList);
	}

	@Override
	public Sign findSignById(Integer id) {
		return mapper.findSignById(id);
	}
}
